<?php

date_default_timezone_set('Asia/Shanghai');
//ini_set('error_reporting', 'E_ALL ^ E_NOTICE');
error_reporting(E_ALL);

class Config {
	//mysql信息
	public static $mysql_config = array(
		'host' => '',    //主机
		'port' => '',    //端口
		'username' => '',//用户名
		'password' => '',//密码
		'dbname' => '',  //数据库名
		'charset' => '', //数据库编码
	);
	//redis用户信息
	public static $mod = 5;
	public static $redis_data_config = array(
	    array('host' => '',  //redis主机
              'port' => '',  //端口
              'pass' => '')  //redis密码
	);
	
	//初始化接口密码
	public static $cache_pass = "zjhcache";

	public static $logger = null;
	public static $loggerError = null;
	public static $loggerDebug = null;
	public static $debug = false;
	
   //游戏服务参数
	public static $ip_server_confing = array(
	      'ip' => '',
	      'port'=> ''      
	);
	//token过期时间
	public static $tokenTime = 600;//秒
	
	//上报数据服务参数
	public static $data_report = array(
	    'ip' => '',
	    'port'=> '' 
	    );
	//上报数据请求token登录参数
    public static $info_report = array(
	    'cid'=>'', //上报数据游戏id
		'user'=>'',
		'pass'=>'',
		'reportTokenTime'=>43200
	    );

	//图片url前缀
	public static $pic_prefix = '';
	
	
	//系统头像列表
	public static $headimgList = array(
	   'headimg_1' => array(1=>'f5c7153f80aa66f7a4f2fd9e0d9b996b',2=>'ed2f599a68d06f3079ca819d40fac2f1',3=>'3ff1f8c39e1473d028f73ce793519017'),
	   'headimg_2' => array(1=>'029d5f67b9adebbb5846906685db1755',2=>'c507f030f42425b9a335240fbb9827c6',3=>'c6a857837d350eba2d08e7024c05cfdb')
	);
	
	//加好友请求的passport
	public static $add_friend_url = '';
	
	//独立包支付回调地址
	public static $independent_notify_url = '';
	
	//平台包支付回调地址
	public static $platform_notify_url = '';
	
	//游戏id
	public static $source = '';
	
	//二维码地址
	public static $qrcode_url = '';
}

Config::$logger =  new Logger("info");
Config::$loggerError =  new Logger("error");
Config::$loggerDebug =  new Logger("debug");
?>
